package com.m31skytech.dungeonstool;

import com.m31skytech.dungeonstool.blockentitys.TeleportControlBlockEntity;
import com.m31skytech.dungeonstool.blockentitys.TeleportPointBlockEntity;
import net.minecraft.world.level.block.entity.BlockEntityType;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

public class BlockEntityRegistry {
    public static final DeferredRegister<BlockEntityType<?>> BLOCK_ENTITIES =
            DeferredRegister.create(ForgeRegistries.BLOCK_ENTITY_TYPES, DungeonsTool.MODID);

    public static final RegistryObject<BlockEntityType<TeleportControlBlockEntity>> TELEPORT_PORTAL_BLOCK_ENTITY =
            BLOCK_ENTITIES.register("teleport_control_block_entity",
                    () -> BlockEntityType.Builder.of(TeleportControlBlockEntity::new, BlockRegistry.TELEPORT_CONTROL_BLOCK.get()).build(null));

    public static final RegistryObject<BlockEntityType<TeleportPointBlockEntity>> TELEPORT_POINT_BLOCK_ENTITY =
            BLOCK_ENTITIES.register("teleport_point_block_entity",
                    () -> BlockEntityType.Builder.of(TeleportPointBlockEntity::new, BlockRegistry.TELEPORT_POINT_BLOCK.get()).build(null));

}
